<html>
<head>
    <meta charset="utf-8">
    <meta name="author" content="lz">
    <title></title>
    <script src="jQuery/jquery-3.1.1.js"></script>
    <style>
        body{
            background-color: #eee;
        }
        *{
            box-sizing: border-box;
        }
        main{
            width: 240px;
            height: 400px;
            background-color: white;
            text-align: center;
            margin: 0 auto;
            position: relative;
        }
        .s1{
            width: 240px;
            height: 400px;
            background-color: orange;
            text-align: center;
            opacity: 0;
        }
        .k1{
            width: 230px;
            height: 390px;
            background-color: white;
            text-align: center;
            margin:0 auto;
            position: relative;
            top: 5px;
            position: absolute;
            top: 5px;
            left: 5px;
        }
        .wz{
            text-align: left;
            margin-top: 30px;
            padding: 10px;
        }
        .s2{
            width: 240px;
            height: 100px;
            background-color: white;
            margin: 0 auto;
            position: relative;
            top: 15px;
            display: -webkit-flex;
            display: -moz-flex;
            display: -ms-flex;
            display: -o-flex;
            display: flex;
            justify-content: space-around;
        }
        .s2>div{
            width: 110px;
            height: 90px;
            /*background-color: forestgreen;*/
            float: left;
        }
        .b1{
            width: 110px;
            height: 80px;
            background-image: url(img/31.jpg);
            -webkit-background-size: 100px 100px;
            background-size: 110px 100px;
            margin-top: 10px;
            position: relative;
            z-index: 100;
            
        }
        .b2{
            width: 110px;
            height: 80px;
            background-image: url(img/32.jpg);
            -webkit-background-size: 100px 100px;
            background-size: 110px 100px;
            margin-top: 10px;
            background-repeat: no-repeat;
            position: relative;
        }
        .zz1,.zz2{
            width: 110px;   
            height: 80px;
            background-color: black;
            opacity: 0;
        }
        .p1{
            width: 100px;
            position: absolute;
            top: 20px;
            left: -175px;
            color: #eee;
        }
        .p2{
            width: 100px;
            position: absolute;
            top: 20px;
            left: -225px;
            color: #eee;
            /*display: none;*/
            overflow: hidden;
        }
    </style>
</head>
<body>
    <main>
        <section class="s1">
            
        </section>
        <div class="k1">
                <img src="img/tx.jpg" alt="">
                <div class="wz">&nbsp吉安师范生是考虑到该放假了上课来得及官方卡拉电饭锅哈哈大大 adf啊打发时间更健康</div>
            </div>
    </main>
    <section class="s2">
        <div>
            <div class="b1">
                <div class="zz1"></div>
                <span class="p1">&nbsp大师傅师傅爱仕达第三方</span>
            </div>
        </div>
        <div>
            <div class="b2">
                <div class="zz2"></div>
                <span class="p2">&nbsp大师傅师傅爱仕达是否</span>            
            </div>
        </div>
    </section>
</body>
</html>
<script>
    $('main').hover(function(){
        $('.s1').animate({
            opacity:1                       
        },1000)
    },function(){
        $('.s1').animate({
            opacity:0                       
        },1000)
    })
    $('.zz1').mouseenter(function(){
         $(this).animate({
            opacity:0.5                       
        },500)
        $('.p1').animate({
            left:5,
            display:'block'                       
        },500)
    })
    $('.zz1').mouseleave(function(){
         $(this).animate({
            opacity:0                       
        },500)
         $('.p1').animate({
            left:-175,
        },500)
    })
     $('.zz2').mouseenter(function(){
         $(this).animate({
            opacity:0.5                       
        },500)
        $('.p2').animate({
            left:5,
        },500)
    })
    $('.zz2').mouseleave(function(){
         $(this).animate({
            opacity:0                       
        },500)
        $('.p2').animate({
            left:-225,
        },500)
    })
</script>